#!/usr/bin/python
# -*- coding: utf-8 -*-
# @author: 高建平
# @desc:
#
import datetime

def format_datetime():
    return datetime.now().strftime('%Y-%m-%d %H:%M:%S')

def format_datetime(date_time:datetime):
    if date_time:
        return date_time.strftime('%Y-%m-%d %H:%M:%S')